{% extends 'king_admin_tmp/table_index.html' %}
{% load tags %}
{% block contenter %}
<div class="row container-fluid jumbotron">

    <div class="container">
        <div class="panel panel-primary">

                <div class="panel-heading">
                    <h5>
                        删除{% get_model_name admin_class %}里的用户：{{ obj }}
                    </h5>

                </div>
        <div class="panel-body">
            <div class="row" style="position: relative">

{#        {% display_obj_related obj %}#}

                <table class="table table-hover">

                    <thead>
                        <tr>
                            {% for colum in admin_class.list_display  %}
                                <th class="panel-heading">{{ colum }}</th>

                            {% endfor %}
                        </tr>
                    </thead>

                    <tbody class="table table-hover">
                        <tr>

                            {% build_table_row request obj admin_class %}

                        </tr>
                    </tbody>

                </table>

                <form action="" method="post">
                    {% csrf_token %}

                    <input type="submit" class="btn btn-danger" value="是的，我要删除" style="position: absolute;margin-left: 50px">
                    <input type="hidden" name="delete_confirm" value="是">
                    <input type="hidden" name="selected_ids" value="{{ selected_ids }}">
                    <input type="hidden" name="action" value="{{ action }}">
                    <button class="btn-primary pull-right" style="margin-right: 50px"><a style="color: white" href="{% url 'table_obj' app_name table_name %}">不，我想保留</a></button>
                </form>

                </div>
        </div>
        </div>
    </div>

</div>
{% endblock %}